package com.catmiw.wyz;

import java.util.List;

public class Book {
	Book() {

	}

	Book(int id) {
		this.id = id;
	}

	Book(String dangdangid) {
		this.dangdangid = dangdangid;
	}

	private int id;
	private String sheetname;
	public String getSheetname() {
		return sheetname;
	}

	public void setSheetname(String sheetname) {
		this.sheetname = sheetname;
	}

	private String dangdangid;
	private String author;
	private String name;
	private String buytag;

	public String getBuytag() {
		return buytag;
	}

	public void setBuytag(String buytag) {
		this.buytag = buytag;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getPublisher() {
		return publisher;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}

	public double getDangdangprice() {
		return dangdangprice;
	}

	public void setDangdangprice(double dangdangprice) {
		this.dangdangprice = dangdangprice;
	}

	private String publisher;

	private double price;

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	private double dangdangprice;
	private String isbn;
	private byte[] picture;

	private List<Double> pricelist;

	public List<Double> getPricelist() {
		return pricelist;
	}

	public void setPricelist(List<Double> pricelist) {
		this.pricelist = pricelist;
	}

	public byte[] getPicture() {
		return picture;
	}

	public void setPicture(byte[] picture) {
		this.picture = picture;
	}

	public String getIsbn() {
		return isbn;
	}

	public void setIsbn(String isbn) {
		this.isbn = isbn;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getDangdangid() {
		return dangdangid;
	}

	public void setDangdangid(String dangdangid) {
		this.dangdangid = dangdangid;
	}

	public String toString() {
		return id + "\t" + dangdangid + "\t" + name + "\t" + author + "\t"
				+ dangdangprice;
	}
	
	public boolean equals(Object o){
		if (!(o instanceof Book))
			return false;
		Book b=(Book)o;
		return id==b.id&&sheetname.equals(b.sheetname);
	}
}

